module PeopleHelper
  def filter_css_class
    "cta cta-blue filter"
  end
  
  def all_filter()
    css_class = (params[:enabled_only] == "true" or params[:disabled_only] == "true") ? filter_css_class : filter_css_class + " current"
    link_to 'All', people_path, :class => css_class
  end
  
  def enabled_filter()
    css_class = params[:enabled_only] == "true" ? filter_css_class + " current" : filter_css_class
    link_to 'Enabled', people_path(:enabled_only => 'true'), :class => css_class, :style => 'margin-left: 10px;'
  end
  
  def disabled_filter()
    css_class = params[:disabled_only] == "true" ? filter_css_class + " current" : filter_css_class
    link_to 'Disabled', people_path(:disabled_only => 'true'), :class => css_class, :style => 'margin-left: 10px;'
  end
end
